
  <table>	
	<tr>
		<td width="20%" align="right">编号：</td>
		<td width="30%">{[$result.code]}</td>
		<td width="20%" align="right">状态：</td>
		<td width="30%">{[$result.status_t]}</td>
	</tr>
	<tr>
		<td align="right">名称：</td>
		<td>{[$result.name]}</td>
		<td align="right">工程员：</td>
		<td>{[$result.emp_t]}</td>
	</tr>
	<tr>		
		<td align="right">外发日期：</td>
		<td>{[$result.begin]}</td>
		<td align="right">完成日期：</td>
		<td>{[$result.end]}</td>
	</tr>	
	<tr>
		<td align="right">合同金额：</td>
		<td>{[$result.currency]} {[$result.total]}</td>
		<td align="right">货币：</td>
		<td>{[$result.currency_t]}</td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3">{[$result.content]}</td>
	</tr>
	<tr>
	  <td align="right">创建时间：</td>
	  <td>{[$result.createtime]}</td>
	  <td align="right">更新时间：</td>
	  <td>{[$result.modifytime]}</td>
	</tr>
  </table>
  
<table style="margin-top:10px">
   <tr>
     <th width="40">序号</th>
	 <th>流水号</th>
	 <th>费用名称</th>
	 <th>应付</th>
	 <th>实付</th>
	 <th>汇率</th>
	 <th>人民币</th>
	 <th>付款日期</th>
	 <th>备注</th>
	 <th>状态</th>   
   </tr>
   {[foreach name=outer key=key item=item from=$result.log]}
   {[assign var="no" value="`$key+1`"]}
   {[assign var="total" value="`$total+$item.total`"]}
   {[assign var="amount" value="`$amount+$item.amount`"]}
   {[assign var="rmb" value="`$rmb+$item.rmb`"]}
   <tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
     <td>{[$no]}</td>
     <td>{[$item.id]}</td>
	 <td>{[$item.item]}</td>
     <td>{[$result.currency]} {[$item.total]}</td>
     <td>{[$result.currency]} {[$item.amount]}</td>
     <td>{[$item.rate]}</td>
     <td>{[$item.rmb]}</td>
     <td>{[$item.date]}</td>
     <td>{[$item.content]}</td>
     <td>{[$item.status_t]}</td> 
   </tr>
   {[/foreach]}
   <tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
     <td colspan="2"></td>
     <td>合计</td>
     <td>{[$result.currency]} {[$total]}</td>
     <td>{[$result.currency]} {[$amount]}</td>
     <td></td>
     <td>{[$rmb]}</td>  
     <td colspan="3"></td>
   </tr>
</table>